// ==========================================================================
// 云捷GO自动生成路由代码，只生成一次，按需修改,再次生成不会覆盖.
// 生成日期：2021-08-01 08:34:56
// 生成路径: app/controller/module/project_router.go
// 生成人：gfcms
// ==========================================================================
package module

import (
	"myblog/app/controller/module/project"
	"myblog/app/service/middleware/auth"
	"myblog/app/service/middleware/router"
)

//加载路由
func init() {
	g1 := router.New("admin", "/module/project", auth.Auth)
	g1.GET("/", "module:project:view", project.List)
	g1.POST("/list", "module:project:list", project.ListAjax)
	g1.GET("/add", "module:project:add", project.Add)
	g1.POST("/add", "module:project:add", project.AddSave)
	g1.POST("/remove", "module:project:remove", project.Remove)
	g1.GET("/edit", "module:project:edit", project.Edit)
	g1.POST("/edit", "module:project:edit", project.EditSave)
	g1.POST("/export", "module:project:export", project.Export)
	g1.GET("/importTemplate","module:project:view",project.ImportTemplate)
	g1.POST("/importData","module:project:view",project.ImportData)
}
